﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace Mvcmediaplayer.Models
{
    public partial class Rating
    {
        // Validation rules for the Comment class

        public class RatingMetadata
        {
            [Required(ErrorMessage="VideoId is required")]
            public object VideoId { get; set; }

            [Required(ErrorMessage="Rating is required")]
            [Range(1,5,ErrorMessage="Rating must be between 1 and 5")]
            public object Rating { get; set; }
        }
    }
}